//
//  DLPullMenuFilterNavView.m
//  DGGUISpaceSDK
//
//  Created by 伍明鹏 on 2019/12/20.
//

#import "DLPullMenuFilterNavView.h"

@interface DLPullMenuFilterNavView ()

//标题
@property (nonatomic, weak) UILabel *titleLabel;

@end

@implementation DLPullMenuFilterNavView

- (instancetype)init
{
    if (self = [super init]) {
        [self setupUI];
    }
    return self;
}

- (void)setTitle:(NSString *)title
{
    _title = title;
    self.titleLabel.text = title;
}

- (void)setupUI
{
    
    self.backgroundColor = [[DLThemeAdapter shareInstance] dynamicColor:[UIColor whiteColor] darkColor:[UIColor colorWithHex:0x2D2D2E]];
    
    //标题
    UILabel *titleLabel = [UILabel new];
    titleLabel.font = [UIFont boldSystemFontOfSize:18];
    titleLabel.text = @"地区切换";
    [self addSubview:titleLabel];
    self.titleLabel = titleLabel;
        
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.bottom.equalTo(self).offset(-15);
    }];
    
}


@end
